<template>
 <el-spin size="large" v-if="pageLoading"/>
 <el-switch v-model:checked="pageLoading" @change="loadingCharge"/>
</template>
<script setup lang="ts">
import { ref } from "vue"
import store from '@/store'
const pageLoading = ref(store.getters['test/getPageLoading'])
const loadingCharge = (checked)=>{
    store.commit('test/setPageLoading', checked)
    // store.dispatch('test/setPageLoadingAction', checked)
}
</script>


